﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

    public class MovieStyleController:NewsDataClassesDataContext
    {
        private static MovieStyleController instance;
        public static MovieStyleController Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new MovieStyleController();
                }
                return instance;
            }
            set
            {
                instance = value;
            }
        }
        public List<NewsMovieType> GetStyleList()
        {
            NewsDataClassesDataContext dataContext = new NewsDataClassesDataContext();
            return (from o in dataContext.NewsMovieTypes
                    select o).ToList();
        }
    }
